
@extends("muban.admin")

@section('main')



<!-- 内容 -->
			<div class="col-md-10">
				
				<ol class="breadcrumb">
					<li><a href="#"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
					<li><a href="#">管理员管理</a></li>
					<li class="active">管理员列表</li>

					<button class="btn btn-primary btn-xs pull-right"><span class="glyphicon glyphicon-refresh"></span></button>
				</ol>

				<!-- 面版 -->
				<div class="panel panel-default">
					<div class="panel-heading">
						<button class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> 批量删除</button>
						<a href="user/create" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> 添加管理员</a>
						
						<p class="pull-right tots" >共有 10 条数据</p>
						<form action="" class="form-inline pull-right">
							<div class="form-group">
								<input type="text" name="" class="form-control" placeholder="请输入你要搜索的内容" id="">
							</div>
							
							<input type="submit" value="搜索" class="btn btn-success">
						</form>


					</div>
					<table class="table-bordered table table-hover">
						<th><input type="checkbox" name="" id=""></th>
						<th>ID</th>
						<th>NAME</th>
						<!--<th>PASS</th>-->
						<th>注册时间</th>
						<th>状态</th>
						<th>操作</th>

						@foreach($data as $value)
						<tr>
							<td><input type="checkbox" name="" id=""></td>
							<td>{{$value->id}}</td>
							<td>{{$value->name}}</td>

							<td>{{date('Y-m-d H:i:s',$value->time)}}</td>
							@if($value->statu)
							<td><span class="btn btn-success">开启</span></td>
							@else
								<td><span class="btn btn-danger">禁用</span></td>
							@endif
							<td><a href="user/1/edit" class="glyphicon glyphicon-pencil"></a>&nbsp;&nbsp;&nbsp;<a href="" class="glyphicon glyphicon-trash"></a></td>
						</tr>
						@endforeach

					</table>
					<!-- 分页效果 -->
					<div class="panel-footer">
						<nav style="text-align:center;">
							{{ $data->links() }}

							<!--<ul class="pagination">
								<li><a href="#">&laquo;</a></li>
								<li><a href="#">1</a></li>
								<li><a href="#">2</a></li>
								<li><a href="#">3</a></li>
								<li><a href="#">4</a></li>
								<li><a href="#">5</a></li>
								<li><a href="#">&raquo;</a></li>
							</ul>-->
						</nav>

					</div>
				</div>
			</div>
@endsection


